import request from '@/utils/request'

// 查询节点池ip配置列表
export function listPoolip(query) {
  return request({
    url: '/system/poolip/list',
    method: 'get',
    params: query
  })
}

// 节点池 添加ip 搜索功能
export function seachIpList(query) {
  return request({
    url: '/system/master/seachIpList',
    method: 'get',
    params: query
  })
}

// 节点池添加ip
export function addList(data, headers) {
  return request({
    url: '/system/poolip/addList',
    method: 'post',
    data: data,
    headers
  })
}

// 查询节点池ip配置详细
export function getPoolip(id) {
  return request({
    url: '/system/poolip/' + id,
    method: 'get'
  })
}

// 新增节点池ip配置
export function addPoolip(data) {
  return request({
    url: '/system/poolip',
    method: 'post',
    data: data
  })
}

// 修改节点池ip配置
export function updatePoolip(data) {
  return request({
    url: '/system/poolip',
    method: 'put',
    data: data
  })
}

// 删除节点池ip配置
export function delPoolip(id) {
  return request({
    url: '/system/poolip/' + id,
    method: 'delete'
  })
}
